package innerclass;

/**
 * 队列
 *
 * @author sun.ye
 * @since 2020-06-09 22:59
 */
public class Sequence {
    private Object[] objects;
    private int next = 0;

    public Sequence(int size) {
        this.objects = new Object[size];
    }

    public void add(Object x){
        objects[next++] = x;
    }
}